package cn.lcsjsxy.yxz.day.Reflection;

//反射
public class Reflection {
    public static void main(String[] args) {

        //多态
        User user = new Child();
        user.test1();
        //user.test2();

        //类对象
        Class<? extends User> aClass = user.getClass();

    }
}

class User{
    public void test1(){
        System.out.println("test1");
    }
}
class Child extends User{
    public void test2(){
        System.out.println("test2");
    }
}